import { request } from './request'


/* method: 'get' 默认 */

/* 获取轮播图数据 */
export function _getBanner(type = 0) {
    return request({
        url: '/banner',
        params: {
            type: type
        }
    })
}

/* 推荐歌单 */
export function _getPersonalized(num) {
    return request({
        url: '/personalized',
        params: {
            limit: num
        }
    })
}

/* 独家放送 */
export function _getPrivateContent() {
    return request({
        url: '/personalized/privatecontent',
    })
}

/* 每日新歌 */
export function _getNewSong() {
    return request({
        url: '/personalized/newsong'
    })
}

/**歌手 */
// area, type, name = -1,limit,offset=1
export function _getArists(params) { 
    return request({
        url: '/artist/list',
        params: {
            area: params.area,
            type: params.type,
            limit: params.limit,
            initial:params.name,
            offset: params.offset
        }
    })
}